package android.olsson.apk;

import android.olsson.apk.interfaces.IBeverage;

public class Beverage implements IBeverage {
	private String name;
	private String type;
	private float volume;
	private float alc;
	private float price;
	private float apk;

	public Beverage(String name, String type, float volume, float alc,
			float price, float apk) {
		this.name = name;
		this.type = type;
		this.volume = volume;
		this.alc = alc;
		this.price = price;
		this.apk = apk;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getType() {
		return type;
	}

	@Override
	public float getVolume() {
		return volume;
	}

	@Override
	public float getAlc() {
		return alc;
	}

	@Override
	public float getPrice() {
		return price;
	}

	@Override
	public float getApk() {
		return apk;
	}

	@Override
	public int compareTo(IBeverage beverage) {
		if (this.getApk() > beverage.getApk())
			return 1;
		else if (this.getApk() < beverage.getApk())
			return -1;
		return 0;
	}

}
